#ifndef __USART_H
#define __USART_H
#include "stdio.h"

extern unsigned char USART_RX_BUF[64];     //接收缓冲,最大63个字节.末字节为换行符 
extern unsigned char USART_RX_STA;         //接收状态标记	
#define LENGTH  ( 0x0400 )
#define ASCII_CODE  ( 0x00 )
#define DECIMALISM  ( 0x01 )
#define HEXADECIMAL ( 0x02 )
#define DUMMY_BYTES ( 0x0000 )
#define USART1_STOP_TRUE  ( 0x01 )
#define USART1_STOP_FALSE ( 0x00 )

void Uart_Init(int bound);
void UartSend(char * databuf) ;
void CheckBusy(void)  ;



#define USART1_DATA_TAG  ( 0x53 )
#define USART2_DATA_TAG  ( 0x53 )
#define USART3_DATA_TAG  ( 0x53 )

// USART stop receive macro
#define USART1_STOP_TRUE  ( 0x01 )
#define USART1_STOP_FALSE ( 0x00 )
#define USART2_STOP_TRUE  ( 0x01 )
#define USART2_STOP_FALSE ( 0x00 )
#define USART3_STOP_TRUE  ( 0x01 )
#define USART3_STOP_FALSE ( 0x00 )


#endif
